import {PermissionDetail} from "@shared/models/Permission";

export class PmMessageDeal {
  messageId: string=''
  type: 'ann' | 'user' | 'custom' | 'reject'='ann'
  customGroup?: string[] = []
  agree?: PermissionDetail = new PermissionDetail()
}

export interface PmMessage {
  id: string
  from: string
  to: string
  fromName: string
  fileIds: string[]
  message: string
  date: string
  detail: PermissionDetail
  avatar?: string
  deal?: PmMessageDeal
}
